package com.fm.financemanage.constant;

public enum PlatTypeEnum {

    // 成功段0
    fj_YB("福建医保", "fj_YB"),
    fj_RS("福建人社", "fj_RS"),
    fj_DZSW("福建电子税务", "fj_DZSW");

    String message;
    String type;

    PlatTypeEnum(String message, String type) {
        this.message = message;
        this.type = type;
    }

    public static PlatTypeEnum getByType(String type){
        for (PlatTypeEnum value : values()) {
            if(value.type.equals(type)){
                return value;
            }
        }
        return null;
    }

    public String getMessage() {
        return message;
    }

    public String getType() {
        return type;
    }
}
